package ynu.lcy.elememicroserviceserviceclient.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import ynu.lcy.dto.User.RegisterDTO;
import ynu.lcy.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 用户服务
 * @author 梁超映
 * */
@FeignClient(name = "eleme-microservice-user-auth",path = "/api/u-a/auth/inner")
public interface AuthFeignClient {

    /**
     * 通过token获取当前用户id
     * */
    @GetMapping("/getLoginUser")
    Long getLoginUser(@RequestParam("token") String token);

}
